package com.aggregate.pay.swiftpass.support.client;

import com.aggregate.pay.swiftpass.bean.MicropayData;
import com.aggregate.pay.swiftpass.bean.MicropayResult;
import com.aggregate.pay.swiftpass.support.AbstractClient;
import com.aggregate.pay.swiftpass.support.Merch;

/**
 * 提交付款码支付API
 * @author Moyq5
 * @date 2019年12月20日
 */
public class Micropay extends AbstractClient<MicropayData, MicropayResult> {

	public Micropay(Merch merch) {
		super(merch);
	}

	@Override
	protected Class<MicropayResult> getResultClass() {
		return MicropayResult.class;
	}

	@Override
	public MicropayResult execute(MicropayData data) {
		data.setService("unified.trade.micropay");
		return super.execute(data);
	}

}
